package com.wolf.cx330.room.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.wolf.cx330.room.entity.MyUser

@Dao
interface UserDao {
    @Query("SELECT * FROM myuser")
    fun getAll(): List<MyUser>

    @Insert
    fun insertAll(vararg user: MyUser)

    @Query("DELETE FROM myuser")
    fun clear()
}